package com.struggle.controller.config;

import com.struggle.common.ExchangeConstants;
import com.struggle.common.QueueConstants;
import com.struggle.common.RoutingConstants;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @className DirectRabbitConfig
 * @Description 路由模式交换机配置
 * @Author liuwj3
 * @Date 2019/10/12 0012 上午 9:51
 **/
@Configuration
public class DirectRabbitConfig {
    @Bean
    DirectExchange getDirectExchange() {
        return new DirectExchange(ExchangeConstants.DIRECT_EXCHANGE);
    }
}
